package com.bookcity.front.webfront.service.impl;

import com.bookcity.front.webfront.domain.draw;
import com.bookcity.front.webfront.mapper.drawMapper;
import com.bookcity.front.webfront.service.IdrawService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-09
 */
@Service
public class drawServiceImpl implements IdrawService 
{
    @Autowired
    private drawMapper drawMapper;

    /**
     * 查询提现记录
     * 
     * @param id 提现记录主键
     * @return 提现记录
     */
    @Override
    public draw selectdrawById(Long id)
    {
        return drawMapper.selectdrawById(id);
    }

    /**
     * 查询提现记录列表
     * 
     * @param draw 提现记录
     * @return 提现记录
     */
    @Override
    public List<draw> selectdrawList(draw draw)
    {
        return drawMapper.selectdrawList(draw);
    }

    /**
     * 新增提现记录
     * 
     * @param draw 提现记录
     * @return 结果
     */
    @Override
    public int insertdraw(draw draw)
    {
        return drawMapper.insertdraw(draw);
    }

    /**
     * 修改提现记录
     * 
     * @param draw 提现记录
     * @return 结果
     */
    @Override
    public int updatedraw(draw draw)
    {
        return drawMapper.updatedraw(draw);
    }

    /**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的提现记录主键
     * @return 结果
     */
    @Override
    public int deletedrawByIds(Long[] ids)
    {
        return drawMapper.deletedrawByIds(ids);
    }

    /**
     * 删除提现记录信息
     * 
     * @param id 提现记录主键
     * @return 结果
     */
    @Override
    public int deletedrawById(Long id)
    {
        return drawMapper.deletedrawById(id);
    }
}
